package org.moocgen.model;

import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.OneToMany;

import org.springframework.data.annotation.Id;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.json.RooJson;
import org.springframework.roo.addon.layers.repository.mongo.RooMongoEntity;
import org.springframework.roo.addon.tostring.RooToString;

@RooJson
@RooJavaBean
@RooToString
@RooMongoEntity
public class User 
{
	@Id
	@Column(unique = true)
	private String matNum;

	private String data;

    @OneToMany(cascade = CascadeType.ALL)
	private Set<Submission> submissions;

    @OneToMany(cascade = CascadeType.ALL)
	private Set<Review> reviews;
}
